$(function(){
	$(".btn-theme-search").click(function(e){
		e.preventDefault();
		url = $(this).attr("rel");
		$g_id = $("#gallerySelect").val();
		window.location.href = url + '/' + $g_id;
	});
});